package com.dengbw.systemtransfer.mapper;

import com.dengbw.systemtransfer.interfaces.MyBaseMapper;
import com.dengbw.systemtransfer.model.db.CmmFunctionCofig;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author dengbw
 * @date 2021/11/2 4:28 下午
 */
@Mapper
public interface CmmFunctionCofigMapper extends MyBaseMapper<CmmFunctionCofig> {
    @Insert("INSERT INTO `cmm_function_cofig`(`user_type`, `nh_type`, `gb_type`, `is_cz`, `subject`, `out_url`, `images`, `is_mr`, `create_user_id`, `create_time`, `modify_user_id`, `modify_time`, `tenant_id`,`default_images`, sort_no, ext_flag, sub_tenant_id, is_del) VALUES (#{userType}, #{nhType}, #{gbType}, #{isCz}, #{subject}, #{outUrl}, #{images}, #{isMr}, 2, NOW(), 2, NOW(), #{corpId}, #{defaultImage}, #{sortNo}, #{extFlag}, #{subTenantId}, #{isDel})")
    void save(Integer userType, Integer nhType, Integer gbType, Integer isCz, String subject, String outUrl,
              String images, Integer isMr, String corpId, String defaultImage, Integer sortNo, Boolean extFlag, Long subTenantId, Integer isDel);
}
